package com.acme.bankapp.exceptions;

@SuppressWarnings("serial")
public class NoEnoughFundsException extends BankException {
    private double amount;

    public NoEnoughFundsException() {
    }

    public NoEnoughFundsException(final String string) {
        super(string);
    }

    public NoEnoughFundsException(final String string, final double amount) {
        super(string);
        this.amount = amount;
    }

    public double getAmount() {
        return amount;
    }
}
